Knowledge Overview
BindAI Knowledge provides the abstractions and execution components needed to connect agents with external information. The Knowledge system supports document ingestion, loading, parsing, chunking, embeddings, metadata, retrieval, reranking, conversational retrieval, and knowledge pipelines. Knowledge can also be integrated with agents so that relevant external information can be retrieved and supplied as context during agent execution.What is Knowledge?
Knowledge provides a structured way to make external information available to an AI application. Examples include:- Application documentation
- Business information
- Product documentation
- Reference material
- Text documents
- Knowledge bases
- Other application-specific information
Knowledge and RAG
Knowledge is closely related to Retrieval-Augmented Generation (RAG). RAG combines external information retrieval with language-model generation. A typical flow is:Knowledge vs Memory
Knowledge and Memory serve different purposes.
For example, a company’s product manual is a good candidate for Knowledge.
A user’s preferred programming language is more naturally represented as Memory.
Applications can use both systems together.
Knowledge vs Tools
Knowledge and tools also solve different problems. A tool is executable application logic. For example:Knowledge Pipeline
Knowledge processing can be viewed as a pipeline:Documents
Knowledge operates on document-oriented information. A document can originate from an application-supported source and then be transformed into smaller searchable units. The general processing flow is:Loading and Ingestion
Knowledge supports document loading and ingestion workflows. A typical ingestion process is:Chunking
Large documents are commonly divided into smaller chunks before indexing. For example:Embeddings
Embeddings represent text as numerical vectors. Conceptually:Retrieval
Retrieval selects information relevant to a query. A simplified retrieval flow is:- Vector retrieval
- BM25 retrieval
- Hybrid retrieval
- Metadata filtering
- Reranking
Vector Retrieval
Vector retrieval uses embeddings to identify semantically related information. For example:BM25 Retrieval
BM25 provides lexical retrieval based on term matching and relevance scoring. It is useful when the exact words in a query are important. For example:Hybrid Retrieval
Hybrid retrieval combines different retrieval signals. A conceptual flow is:Metadata
Knowledge records can carry metadata describing the source or content. Examples include:Filtering
Knowledge retrieval can use metadata filtering to narrow the candidate information. Conceptually:Reranking
Initial retrieval can produce a set of candidate results. Reranking can then reorder those results according to a more focused relevance strategy.Conversational Retrieval
Knowledge retrieval can also be used in conversational applications. A conversational retrieval flow can use previous conversation context when interpreting a new query.Knowledge Pipelines
BindAI provides knowledge pipeline components for organizing ingestion and retrieval-related processing. A pipeline can coordinate stages such as:Knowledge and Agents
Knowledge can be integrated with agents through the agent’s Knowledge configuration. A simplified architecture is:Knowledge, Memory, and Tools Together
A production agent may combine all three systems.- Memory can provide a user’s stored preferences.
- Knowledge can provide relevant product documentation.
- A tool can call an external API to retrieve live information.
Knowledge and Workflows
Knowledge can also participate in workflows. A workflow may perform ingestion:Knowledge Sources
Knowledge systems can be built from many kinds of external information. Depending on the configured loaders and integrations, applications may work with sources such as:- Text documents
- Markdown
- Application-generated content
- Structured records
- External data sources
Knowledge Providers and Retrieval Components
Knowledge is composed of multiple abstractions rather than a single storage implementation. The current implementation includes components for:- Documents
- Loaders
- Parsing
- Chunking
- Embeddings
- Metadata
- Retrieval
- Search options
- Reranking
- Conversational retrieval
- Knowledge pipelines
Search Options
Knowledge retrieval can be configured according to application requirements. Relevant retrieval choices include:- Vector search
- BM25 search
- Hybrid search
- Metadata filtering
- Result limits
- Reranking
- Conversational query handling
Knowledge Quality
Retrieval quality depends on more than the language model. Important factors include:Knowledge Security
Knowledge systems can contain private or sensitive information. Applications should consider:- Tenant isolation
- Access control
- Metadata filtering
- Source permissions
- Secure storage
- Credential management
- Data retention
- Document deletion
Current Knowledge Capabilities
The current BindAI Knowledge implementation includes:- Document abstractions
- Document loading
- Ingestion pipelines
- Parsing
- Chunking
- Metadata
- Embedding abstractions
- OpenAI embeddings
- Local/deterministic embeddings
- Vector retrieval
- BM25 retrieval
- Hybrid retrieval
- Search configuration
- Metadata filtering
- Reranking
- Lexical reranking
- Conversational retrieval
- Knowledge pipelines
- Agent Knowledge integration
Knowledge and Production RAG
A production RAG system commonly combines several Knowledge components:Best Practices
- Keep Knowledge separate from Memory and tools.
- Use Knowledge for external or reference information.
- Use Memory for application-specific retained information.
- Use tools for executable actions and live external operations.
- Choose chunking strategies appropriate to the source documents.
- Use metadata consistently during ingestion and retrieval.
- Select retrieval strategies based on query characteristics.
- Use hybrid retrieval when both lexical and semantic signals are valuable.
- Use reranking when initial retrieval produces too many similar candidates.
- Test retrieval quality with realistic queries.
- Keep tenant and access boundaries explicit.
- Do not treat metadata filtering as a complete authorization system.
- Keep provider-specific behavior documented separately from the general Knowledge abstraction.
- Avoid indexing unnecessary sensitive information.
- Keep embedding dimensions compatible with the configured vector storage.
- Treat ingestion and retrieval as separate concerns where appropriate.
